package com.foreknow.elm.dao;

import com.foreknow.elm.po.User;

public interface UserDao {
    /**
     * 根据用户编号与密码查询用用户信息
     * @param userId
     * @param password
     * @return
     */
    public User getUserByIdByPass(String userId, String password) throws Exception;

    /**
     * 根据用户表号查询用户返回的行数
     * @param userId
     * @return
     */
    public int getUserById(String userId) throws Exception;

    /**
     * 向用户表中插入一条数据
     * @param userId
     * @param password
     * @param userName
     * @param userSex
     * @return
     */
    public int saveUser(String userId,String password,String userName,String userSex) throws Exception;
}
